package com.unknowpupil.sell.domain;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;


/**
 * <p>
 *
 * </p>
 *
 * @author AutoGenerator
 */
@TableName("order_master")
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class OrderMaster implements Serializable {
    /**
     * 订单id
     */

    @ApiModelProperty(value = "订单id")
    @TableId(value = "order_id", type = IdType.INPUT)
    private String orderId;
    /**
     * 买家名字
     */

    @ApiModelProperty(value = "买家名字")
    private String buyerName;
    /**
     * 买家电话
     */

    @ApiModelProperty(value = "买家电话")
    private String buyerPhone;
    /**
     * 买家地址
     */

    @ApiModelProperty(value = "买家地址")
    private String buyerAddress;
    /**
     * 买家微信id
     */

    @ApiModelProperty(value = "买家微信id")
    private String buyerOpenid;
    /**
     * 订单总金额
     */

    @ApiModelProperty(value = "订单总金额")
    private BigDecimal orderAmount;
    /**
     * 订单状态默认0新订单
     */

    @ApiModelProperty(value = "订单状态默认0新订单")
    private Integer orderStatus;
    /**
     * 支付状态默认0未支付
     */

    @ApiModelProperty(value = "支付状态默认0未支付")
    private Integer payStatus;

    @TableField(value = "created", fill = FieldFill.INSERT)
    private Date created;
    @TableField(value = "updated", fill = FieldFill.INSERT_UPDATE)
    private Date updated;

}
